import axios from "axios";

console.log(import.meta.env);

const newAxios = axios.create({
    baseURL: import.meta.env.VITE_APP_BASE_URL,
    timeout: 5000
})

newAxios.interceptors.request.use((req) => {
    const token = localStorage.token
    if (token) {
        req.headers.Authentication = token
    }

    return req;
})

export default newAxios